package cn.wolfcode.orderServer.web.controller;

import cn.wolfcode.orderServer.domain.Order;
import cn.wolfcode.orderServer.service.IOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OrderController
 * @Author VCR
 * @Date 2021/12/21 15:30
 * @Version 1.0
 */
@RestController
@Slf4j
public class OrderController {

    @Autowired
    private IOrderService orderService;

    @RequestMapping("/get")
    public Order order(Long productId, Long userId) {
        log.info("订单服务表现层Controller");
        return orderService.get(productId, userId);
    }
}
